
package cn.view.bak;

import java.awt.*;
import javax.swing.*;

public class demo2 extends JFrame {

 JMenuBar jb;
 JTextArea ja;
 JScrollPane jsp;

 public void setImage() {
  jb = new JMenuBar();
  this.setJMenuBar(jb);
  ja = new JTextArea();
  jsp = new JScrollPane(ja);

  this.setSize(600, 400);
  this.setLayout(new BorderLayout());
  this.add(jsp);
  this.setVisible(true);
 }


 public static void main(String[] args) {
  demo2 a = new demo2();
  a.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  a.setImage();

 }

}